package com.zy.openchat.core.manager;

import android.os.Parcel;
import android.os.Parcelable;

public class ChatExInfo implements Parcelable {
    //会话id
    public long chatId;
    //会话背景
    public String chatBg;
    //群组人数
    public int groupMemberCount;

    public ChatExInfo() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeLong(this.chatId);
        dest.writeString(this.chatBg);
        dest.writeInt(this.groupMemberCount);
    }

    protected ChatExInfo(Parcel in) {
        this.chatId = in.readLong();
        this.chatBg = in.readString();
        this.groupMemberCount = in.readInt();
    }

    public static final Creator<ChatExInfo> CREATOR = new Creator<ChatExInfo>() {
        @Override
        public ChatExInfo createFromParcel(Parcel source) {
            return new ChatExInfo(source);
        }

        @Override
        public ChatExInfo[] newArray(int size) {
            return new ChatExInfo[size];
        }
    };
}
